/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * MainFrame.java
 *
 * Created on Sep 16, 2011, 6:30:41 PM
 */

package com.agentslab.appstarter;

import aa.core.Actor;
import aa.core.ActorMessage;
import aa.core.ActorName;
import aa.core.CyberOrg;
import aa.core.Platform;
import aa.gui.View;
import aa.tool.CyberOrgTuple;
import com.agentslab.gameclient.GameListPanel;
import com.agentslab.gameclient.ServerListPanel;
import com.agentslab.gameprovider.GameProvider;
import com.agentslab.gameprovider.ResourceListPanel;
import com.agentslab.resourceprovider.ResourceProviderPanel;
import javax.swing.JTabbedPane;

/**
 *
 * @author mehadihasan
 */
public class MainFrame extends javax.swing.JFrame {

    /** Creates new form MainFrame */
    public MainFrame() {
        
        initComponents();
        this.settingsPanel = new SettingsPanel();
        this.partyTab.addTab("Settings", this.settingsPanel);
        this.gameListPanel = new GameListPanel();
        this.partyTab.addTab("Player", this.gameListPanel);
        this.resourceListPanel = new ResourceListPanel();
        this.partyTab.addTab("Game Owner", this.resourceListPanel);
        this.resourceProviderPanel = new ResourceProviderPanel();
        this.partyTab.addTab("Resoure Owner", this.resourceProviderPanel);
        
        this.serverListPanel = new ServerListPanel();
        

    }

    public ServerListPanel getServerListPanel() {
        return serverListPanel;
    }

    public void setServerListPanel(ServerListPanel serverListPanel) {
        this.serverListPanel = serverListPanel;
    }

    

    public GameListPanel getGameListPanel() {
        return gameListPanel;
    }

    public void setGameListPanel(GameListPanel gameListPanel) {
        this.gameListPanel = gameListPanel;
    }

    public JTabbedPane getPartyTab() {
        return partyTab;
    }

    public void setPartyTab(JTabbedPane partyTab) {
        this.partyTab = partyTab;
    }

    public ResourceListPanel getResourceListPanel() {
        return resourceListPanel;
    }

    public void setResourceListPanel(ResourceListPanel resourceListPanel) {
        this.resourceListPanel = resourceListPanel;
    }

    public ResourceProviderPanel getResourceProviderPanel() {
        return resourceProviderPanel;
    }

    public void setResourceProviderPanel(ResourceProviderPanel resourceProviderPanel) {
        this.resourceProviderPanel = resourceProviderPanel;
    }

    
    



    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        partyTab = new javax.swing.JTabbedPane();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(partyTab, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 532, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(partyTab, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
    * @param args the command line arguments
    */
   

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTabbedPane partyTab;
    // End of variables declaration//GEN-END:variables
    private GameListPanel gameListPanel;
    private ResourceListPanel resourceListPanel;
    private ResourceProviderPanel resourceProviderPanel;
    private ServerListPanel serverListPanel;
    private SettingsPanel settingsPanel;
   
}
